package com.sinodata.common
{

	import com.sinodata.atmc.BOCSuzhou;
	import com.sinodata.atmc.common.CallingOCX;
	import com.sinodata.atmc.common.CallingServer;
	import com.sinodata.components.SurfaceContainer;
	import com.sinodata.components.UserInfo;
	
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.utils.ByteArray;
	
	import mx.collections.ArrayCollection;
	
	public class Application
	{
		
		//===================公共变量====================
		
		public var serviceUrl:String = "/atmpsz/GateWayServlet.do";
		
		public var sign:String = "zk_1234";
		
		public var service:DataService = new DataService();
		
		[Bindable]
		public var container:SurfaceContainer = new SurfaceContainer();
		
		
		//===================P端变量====================
		
		[Bindable]
		public var loginUser:UserInfo;
		
		[Bindable]
		public var atmp_title:String = "自助票单机管理"; 
		
		[Bindable]
		public var atmp_footer:String = "版权所有(C) 2012 北京中科金财股份有限公司"; 
		
		//===================C端变量====================
		
		public var mainForm:BOCSuzhou=null;
		
		[Bindable]
		public var atmc_loginAccountNo:String;
		
		[Bindable]
		public var atmc_transType:String;//交易的类型:check 支票，voucher 贷记凭证，settlement 结算业务申请书，payment 同城支付凭证，receipt 回单打印
		
		[Bindable]
		public var isAgainPrint:Boolean;
		
		[Bindable]
		public var starttime:String;
		
		[Bindable]
		public var endtime:String;
		
		[Bindable]
		public var accountNo:String;
		
		[Bindable]
		public var callingOCX:CallingOCX = new CallingOCX();
		
		[Bindable]
		public var atmc_callingServer:CallingServer = new CallingServer();
		
		[Bindable]
		public var atmc_cardId:String;
		
		[Bindable]
		public var obj:Object = new Object();

		[Bindable]
		public var delay_time:int = 1200;
		
		[Bindable]
		public var _readerInit:String;//扫描仪初始化
		
		[Bindable]
		public var _stampOpen:String;//打开盖章机
		
		[Bindable]
		public var _stampInit:String;//初始化盖章机
		
		[Bindable]
		public var _keyPressInit:String;//初始化密码键盘
		
		[Bindable]
		public var _payeeBank:String;//收款人开户行名称
		
		[Bindable]
		public var _payerBank:String;//付款人开户行名称
		
		[Bindable]
		public var _clickTimes:int = 1;//付款人开户行名称
		
		[Bindable]
		public var _payType:String;//收付款类型
		
		[Bindable]
		public var _peopleType:String;//持票人类型
		
		[Bindable]
		public var phonenum:String;//联系人手机号
		
		[Bindable]
		public var idcnum:String;//身份证号码
		
		[Bindable]
		public var idcname:String;//身份证姓名

		[Bindable]
		public var DIRECTION_JUMP:String;//跳转方向
		
		[Bindable]
		public var frontIMG:String;//支票正面影像
		
		[Bindable]
		public var rearIMG:String;//支票背面影像
		
		[Bindable]
		public var jzdfontIMG:String;//进账单正面影像
		
		[Bindable]
		public var jzdrearIMG:String;//进账单背面影像
		
		[Bindable]
		public var frontIMG_code:String;//正面影像编码
		
		[Bindable]
		public var rearIMG_code:String;//背面影像编码
		
		[Bindable]
		public var jzd_frontIMGcode:String;//进账单影像编码
		
		[Bindable]
		public var jzd_rearIMGcode:String;//进账单影像编码
		
		[Bindable]
		public var quickmark:String;//二维码
		
		[Bindable]
		public var diwencheck:String;//底纹验证是否通过
		
		[Bindable]
		public var DIRECTION_TIMEOUT:String;//超时跳转方向
		
		[Bindable]
		public var isPrint:String;//是否打印
		
		[Bindable]
		public var isEWMPass:String;//二维码验证是否通过
		

		[Bindable]
		public var hasPSW:String;//是否有支付密码
		
		[Bindable]
		public var username:String;//轧帐用户名
		
		[Bindable]
		public var checkMount:int;//支票数
		
		[Bindable]
		public var jzdMount:int;//进账单数
		
		[Bindable]
		public var checkexisttimes:int = 0;//一次交易扫描支票的次数
		
		[Bindable]
		public var jzdexisttimes:int = 0;//一次交易扫描进账单的次数
		
		[Bindable]
		public var password:String;//轧帐密码
		
		[Bindable]
		public var systemtype:String;//对应集中处理系统业务类型

		//==========包商收款人与付款人=======
		[Bindable]
		public var printinfoHD:Object = new Object;//回单打印-打印信息
		[Bindable]
		public var payer:String;//付款人全称

		
		[Bindable]
		public var p_account:String;//付款人账号
		
		[Bindable]
		public var money:String;//金额
		
		[Bindable]
		public var opening_bank:String;//付款人开户行
		
		[Bindable]
		public var showAccount:Array; //全部账号。
		
		[Bindable]
		public var useAccount:String;//正在使用的账号。
		
		[Bindable]
		public var payee:String ;//收款人全称
		
		[Bindable]
		public var pee_account:String;//收款人账号
		
		[Bindable]
		public var payeeBank:String; //收款人开会行
		
		[Bindable]
		public var payerPZH:String;
		
		//---------轧帐时获得的状态----------
		
		[Bindable]
		public var deviceNO:String;//设备编号
		
		[Bindable]
		public var printerStatus:String;//打印机状态
		
		[Bindable]
		public var startUseTime:String;//启用时间
		
		[Bindable]
		public var offerPaperStatus:String;//供纸盒状态
		
		[Bindable]
		public var inkBoxStatus:String;//墨盒状态
		
		[Bindable]
		public var upFrontDoor:String;//上前门状态
		
		[Bindable]
		public var downFrontDoor:String;//下后门状态
		
		[Bindable]
		public var sideDoor:String;//侧柜门状态
		
		[Bindable]
		public var printerAddress:String;//打印机IP地址
		
		

		private static var _instance:Application = null;
		public static function getInstance():Application{
			if(_instance == null)
				_instance = new Application();
			return _instance;
		}
		// TODO: Auto Generated method stub
	}
}